package cn.edu.bjtu.toychange.service;

import cn.edu.bjtu.toychange.entity.Toy;
import cn.edu.bjtu.toychange.entity.User;

public interface ToyService {
	public boolean insertToy(Toy toy);
	
	public boolean updateToy(Toy toy);
	
	public boolean deleteToy(int toyID);
	
	public Toy getToy(int toyID);
	
	public User getOwner(int toyID);
	
	public boolean lockToy(int toyID, int state);
	
	public boolean unLockToy(int toyID, int state);
}
